<%@ page contentType="text/html;charset=UTF-8" %>
<div style="padding-top: 5px">
			共找到${page.totalCount}条记录，共${page.totalPages}页，当前第${page.pageNo}页
			<a href="javascript:jumpPage(1)"><img src="/app/main/images/turnpage/BtnPagePrev2.gif" border="0" alt="" width="27" height="20" style="width:27px;height:20px"/></a>
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})"><img border="0" src="/app/main/images/turnpage/BtnPagePrev1.gif" alt="" width="27" height="20" style="width:27px;height:20px"/></a></s:if>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})"><img border="0" src="/app/main/images/turnpage/BtnPageNext1.gif" alt="" width="27" height="20" style="width:27px;height:20px"/></a></s:if>
			<a href="javascript:jumpPage(${page.totalPages})"><img border="0" src="/app/main/images/turnpage/BtnPageNext2.gif" alt="" width="27" height="20" style="width:27px;height:20px"/></a>
			<input type="text" class = "input" style="width:30px" id="goPage">
			<input type="button"  class="submit" value="跳 转"  onclick="jumpTo();">
		</div>
		
		<script>
			function jumpTo(){
				var goPage = $('#goPage').val();
				var totalPage = '${page.totalPages}';
				if(totalPage == null || totalPage==""){
					totalPage =  0;
				}
				var pg = parseInt(goPage);
				if(isNaN(pg)){
					//alert("请输入一个有效的数字");
					$('#goPage').focus();
					Ext.MessageBox.show({
				           title: '错误',
				           msg: '请输入一个有效的数字',
				           buttons: Ext.MessageBox.OK,
				           icon: Ext.MessageBox.WARNING
				       });
				}else if(pg<=0 || pg> totalPage){
					//alert("页码超出范围");
					$('#goPage').focus();
					Ext.MessageBox.show({
				           title: '错误',
				           msg: '页码超出范围',
				           buttons: Ext.MessageBox.OK,
				           icon: Ext.MessageBox.WARNING
				       });
				}else{
					jumpPage(pg);
				}
			}
		</script>